add missing getConnection() method