1.memory optimized about new connection; 2 smart ptr