make sure that we don't connect hooks multiple times