hack to pay attention to the attributes of a class: restricted, auth.