added verification of serialized object