more realiable routing generation