adding support for the new download endpoint