scripts enhancement