tweak index design and add a license