updated routes to create rules based on config
updated tests
added redirectroute