refactor System.out to logger calls