udpate to allow passing of additional variables to update roles