change io of script