update to use binary data and not json