check some syntax errors