device and purchase date issue almost sorted