updated stderrhandler