high-level script to program the flash works now