removed startPd() function. should be implemented again.