streamlined code for package upload and generalized the force parameters