added script for update funstions of getting data, checking case, and making new case if required.