removed debug statements
better logging configuration