refactoring of services to use RPCResult response; authentication in
services