reworked how data got packaged before sending to server