- fixed structure
- support dir option