added error tracking to pd manager