modifications to message passing to save space on Arduino side