get authority id properly