implemented basic server/client startup logic