optimize global destruction check
updated Changes
document prepare_class and create_attributes