commit index file script