create an index file if it doesnt exists