debug reset_context ref_cnt json