fix missing import in duplex