upgraded devadd and add user if not exists (need testing)