move rpc decorator to the server class