add main server logic files