add commands to register a device remotely