make NewConnection public