make decoder a friend of transport