update script for new case setting