fixing workflow serialization and deserialization issues