replace use of System.out with LOG.debug