update security, add localDevices and claimDevice functionality