[WIP] serializer implementation