local files detection for #25