find terminal path WIP