refactoring, check syntax error on init step.