fixed script porcessing issues