keeps the old context but updates hostname and pid