clean before connect, and remove superfluous dep