move fix ip stuff to shell script