added permissions for downloading files