working on routing
add tests for routing