add load-script and remove trait check