not you metier, je sais, but how about just making index() a InputType?