init functions, update iptofp