optimized a bit for gnome