split remote.new in remote.new and remote.lookup