add support for writing delfated output