fix local file access