rewrite_remote
