loadscript instead of writescript