made chunk index long instead of integer.