add refraction script