trying to move my locgic to a x11 app.