index: check index validity on start