added print statements for gui/nongui choice