add hierarchy to roles