added logging for file downloads