catch syntax errors