break in gui and no-gui case