phash: big refactor, looking much better. put transactions are now broken up into grains of 50.