now properly displays syntax errors