script accepts ip address as first argument