hostname is replaced by user defined name