added the ability to generate routes