ensure we are always writing in the engine's root context
(from c++ non-root contexts can't be written into)