fix some bugs regarding sub authority implementaiton