avoid registering rpc functions too early