shortcut in creating RPC server