modified comunication to server