added a wait for pd controller fn