add index and doc