changed how ip-address is generated