added process argument
added temporary index file