add generated option to schema fields; misc fixes