changed system.err to LOG4j