sending measures to server