addjust to api changes done to support log4j2