serializer used on all messages