more intelligent capFile mode detection