script cleansing