support for options.flatten is added
Merge pull request #2 from isadovskiy/options-rename

support for options.flatten is added