extract path names to variables