added getExtension api