refactored role names +  bug fix of ID use in file lookup