added support for extension path