fix bug where env name wasn't correctly sent to buffer transport thread