coerce the received data into a consistent format