@wip Fix timing and some env name errors; buffer clears now