Rejigging all of the PD process structure

now have state changer