adding support for expand and shortest path routes