changed a few to adapt mac os tun up