add rpc server support on local mode