Revert "drop cas"

This reverts commit 985928909036914e5de1a626bd11f31f3346d7d5.
jb_2.5.5 branch