need to fix a segfault at Object::isA and there's also a deadlock