add findRole logic