updated to use log4j