converted to use log4j