smd script