mode: add set_label() method