added print statements for gui/non-gui