added protection against non-set roles