refactor
send to server data