WIP: threadsafe ENV interaction