add initializer for the hostname