fixed NewTransport example code