fix some bugs in routing, add convenience functions to object. Route could really do with a refactor