started outline for a simulation context
more work converting core to use context - still doesn't compile