restore env after c-c?