updated to allow for downloading of file