make flume more robust
Merge pull request #1 from xlvector/master

make flume more robust