revamped the index a bit, probably a bit broken though