simplify file recognition