add block_index to default data

records the index of the current block