replaced Debug class with log4j