evaluate script api inside evaluated script