WIP. flag transitions