updated listroutes method