adding support for extensions