We need extractPath a little earlier in the process.