pass a getter to provider:get