rename flushing to commitRunning