adding server start logic