add device detection. no carriage returns.