use key *or* ref attribute to obtain context model keys