work on sim and Tcl