needs an extension to detect type