prep for GUI, debug switch