removing external dependency on log4j