completed debugging ident functions