fix loadscript function