introduced flush and flushAll family function