use varsetattr() for setting intent