#include "ui.h"
 #include "sleep.h"
 #include "cmdparser.h"
-#include "cmdmain.h"
+#include "cmdhw.h"
 
 // a global mutex to prevent interlaced printing from different threads
 pthread_mutex_t print_lock;
        if (arg->usb_present == 1) {
                rarg.run = 1;
                pthread_create(&reader_thread, NULL, &uart_receiver, &rarg);
+               // cache Version information now:
+               CmdVersion(NULL);
        }
 
        FILE *script_file = NULL;
                }
                
                if (!script_file) {
-                       PrintAndLog("FOO!!");
                        cmd = readline(PROXPROMPT);
-                       PrintAndLog("BAR!!");
                }
                
-               PrintAndLog("SNAFU!!");
                if (cmd) {
 
                        while(cmd[strlen(cmd) - 1] == ' ')