added api for downloads