working on server communication