[transport] updated api to use transport class