feature/CAS

Fixes #35 
ok.