trying to increase speed of IPP
now slightly faster though still slow