modified scrCSK script