initial import of patch tool