conver the script to smart_inject type