use getSyntaxErrors (next to regular getErrors) as well; weird
construction?