Prepare for CAS; refactor inode