we now pass the context plus the local element indices instead of the global ones. this allows more flexibility in how that data is stored internally.