add dupes option
fixy typo in writing interval lists