use pre_start hook to set connection credentials