implement naming schemes and move download_file to dlhelpers