added script which is called externally, environment-wise, in order toswitch connections