provide callback for index creation (needed for write concern)