added dedupe in a ugly way
Merge branch 'master' of https://github.com/BinaryBlob/CCMTM