added log4j logging