update duplicator to hopefully use less memory