add LOOP_COUNT / debug etc