switch from foreach to for to improve compatibility; bump version