added grammarManager