post to server in more structured way