pre-connect callbacks