adding script around SCD