fix an import error, a TransportError when flushing a non created es index, and remove an unused serializer.
better test coverage