index based preference entry

preliminary work for adding if/iff states, not implemented yet