use surveytool's ids() and variables()