utility scripts for flashing on different platforms