fixed parse error handler
optimized exceptions module