improve the ipconf script