cleanup index file