script creation problems fixed