added easy roleFunction loading method