download files first