add support for writing duplicate reads to separate file