get FlushError import from the right place