added name field, automatically send device UID unless name specified by user