do not raise error when role is undefined but not needed