removed dependecy on gsubfn -> tcl/tk -> X11