added goto_script function