added memory contexts and temporary atomic linear allocator