pluggable serializer