shorten network connection script