fixed comparing nested object, added possibility to set parent in update