use niofsdirectory for better performance
Merge pull request #26 from p1tz/master

merge