removed debug code in tcb_dir