include check for whether indexes were actually created (in createIndex)