re-enabled and bugfixed syntax error checks