upgrade subprocess fixup