start of IP handling