index: better support for passing in an "options object"