load hex file functionality