rename template blocks to be unique