add role to locals context