introduce and use getCurrentConnection()