fixes env passing in server