removed downloadFile function