add extname support