added log4j logging to fix warnings