routing with mux
handler refactoring