removed debug printing, added logging