index and task setup