fixing wls script