changes to ksScript