would it not make more sense to have this config return an instance directly, so that the user can inject additional stuff?