finished the base part of cloudDownload, we could
now fix bugs and merge with webApi