some fixes to the deterministic path parser