changes to tomo and cas3d scripts