enable flush function
Merge pull request #2 from makusu/master

Enable flush function