Refinement of sketch.  reading in entities, but not sorted yet