helper script for updating remote server