add keep_words and priority to set_items