support return an extension or a table of extensions