adding debug class to Object::debug