factored out gloss rules into their own files