first working version
replaced apache commons logging with log4j