added path reconstruction