add functions to conduct basic server communication, close #15