added logging support via log4j