intelligent script