create index from file