added extension and start index