version 4 with index file