script_api use arg 'replace' instead of 'append', like regular api