set conn id when construct conn