fixes problems with reflection related to the new controller structure, it should find default endpoints correctly now