process single file