fix sink command function to include weights from tfrc-sink.cc