check for syntax errors on build