cleanup and modified PPS to allow multiple pin reconfigurations