small bugfixes, syntax validating