cbs wrap writes to file