concurrency fixes
envmap to file