- add filename option
- extend test