add 'ext' to constructor