fixed ownerkey issues with device/share API