replaced gobs.readline and REPL loop with gobs.cmd