update environment for cas