connection hooks