implemented flush in evaluator