add "ext" variable to the constructor