Similar thing happened to me once. You can do an internet search for a DIY derailleur hanger alignment tool. As far as the index shifting. If it rides and works in friction mode, there’s no reason the indexing shouldn’t work. It is what it is, and is adjusted with the barrel adjusters at the derailleur or in-line.
Dan