refactor server launcher (functions: a thing!)