update class dynamic and function loadDynamic