duplex script added