new server logic