detectFileName is now protected