add hostname support