added is_flex settings