added back modifications to scripts for flash/noFlash depth