added foreign_list and set_attributes