adds index file