scripts for ROMs