nest if/else explicitly
add support for tcl