throw exeption when role use extnds or with keywords