finish get-remote.sh