update casefiles and code