added mode to ppdDownload