attempt to get teh correct variable out of path