figuring out how to capture data to send to server