made rpc api angular friendly