add roles checking and roles in order

Change-Id: I87735bf4e0432d3dae4c27b3322e517b82d3b3bf
Merge "add roles checking and roles in order" into dev/experimental