replace System.out.println, which prints out mysterious error messsage
without reporting the source