fix very wonky logic around hostname calculation