separate static server logic