reduces the two script commands into one