simple flush on demand method added