downloading files to specified directory