got deserialization working finally