multithreaded frontend and handle counter
message system and threads