remove gui dependency