fixes various parse syntax errors.