download file functionality restored