removing copyright and splitting host into hostname/port
removing copyright and splitting host into hostname/port