added file download and metadat gather