add: better path checker