adding more debug statements
changing logger to STDOUT