switch to magic __toString
Add logic for changing index type