adds option to create index in background