gets path right