adding 3 new scripts to investigate patches, check_patches and SG