changed way of accessing task variables for forms