added ability to use default file name for downloaded files if none provided