fixes BackgroundDownload syntax
code refactored