fixes #4, fixes #4, allow a single input to be written to multiple output files