argh, pass env around everywhere