first shot at a buildpatch script