removed some unnecessary code relating to sfgui