made transport_method an optional variable