hash as constructor argument in provider