file processing implemented with gloss