add file ext checker.