fix opening local files