small tweaks to flash.sh