debug dir reference issue