fixed script encryption