update index and setup