refactor and simplify grammar loading. warn if grammar is not combined. wasn't wiping grammar cache on close.