allow to open directory
fix issue#1