simple flush on demand method added

Related to #11
I'm not sure about all the things that ``try_flush`` is doing but this might work