minor tweaks to warning output, and now only id and devicetype or written to stata