change the way we get the path