handle a hook changing connection parameters