o.hs: handle office files