sending to server at 1 second intervals