add _allow_dynamic_properties for disabling dynamic properties