overwrite 'define' method to track model pkid