add file states and transitions