replace sysout by logger methods to implement #1