with logging and fixed maven problem with log4j