added a progressCallback-parameter to track the download progress