before permanent connection