begin extracting flow controls