fixup constructor-call when registering the service-provider