improvements as well as added route flush