changed to use log4j logging