removed debug statements, added logging