checkExtension