replace list of fields with a Schema
work in progress