tesing script patch by @klonuo