add gui (allows for a graceful logger shutdown) and prevent the program from always using 22% CPU