one more thing i forgot to add here, is that the only thing i changed from the original tabwrite~ code was replacing "tabwrite" with "tabwrite2".