remove unused initializers
remove redundant task
move cas config to env