handle syntax errors in source code