update to download functions