func to read serialized run