added devices array to outgoing messages to preserve to devices