pass options to createIndex