change field "options" to "flags"