file downloads working marginally