add some methods to InstanceImpl class.