made getConnection public