- added persistent devices

 - completed the add function