deregister ips before register