maybe add writeout_from & trimmed to the dout(10) above for debugging ?