server logic moved into dedicated file