added support for switching path reconstruction algorithms