add 'dirty' attribute to base type