add index and files