make server not depend on machine name, extracted wifi setup, clean up moved vars