swap script commands