add instance checks