add instance checking stuff