debug log using ptree; disabled unlink check during destruction because of head nodes