options can be a function
Merge pull request #1 from sashee/master

options can be a function