command serializer