minor reversion patches
fixed updating roles