modified tcl to call scripts and also added scripts for output