changed all sout messages to log.debug messages