remove flushing, test line for ending with ready when not ready