fix for open and download files