WIP refactor adapters
use a new method to create indexes for unrolled loops, allows explicit field names
use different method to determine list size