reuse the environment across postMessage calls