add file to index