simplify. no need for listeners as System.err can be reset.