interface for the communication with the server