forgot to uncomment downloadFile function