replaced main.hex with variable hex file name