minor bug fix: records fields to use are now taken fron the schema