refining message package as sent to server