modify server logic