reindex script added back