implement a simple routing management