added duplicate-cn support