use session for connetion pool and retry