set strict_class_access via a method