before rpc server