got instanceof checks working