make grammarstore lazy