debugging attempt, consolidate logging