make uses of gethostname()