multithreading working with server
debug working