added fixopenwith to remove duplicates