init CAS refactor