use logging instead of System.out.println