adding hostname and scheme