threading local the whole connection class