simplified server logic