fix serialization issues by using built in xml serializer, hacky