modified the event loop to answer user comands with an echo on system
events