make callbacks survive connections