added an 'ext' option