restored constraints in routes