determine path to destination