before adding pdf downloader