improvements on getExtensions