working client server communication