updated generator to add root route