implemented snappy pathing