updating server logic