use item.flags for common fields attributes (readonly/required, etc.