working gui and cmd