added support for registering services