using DEBUGF where reasonable