renamed jg_chk as jg_check