changed debug output for register a service