server logic & client routing