debugging clk_cnt.lua