debug interface: get rid of unused pre_debug fn