add register log and harmonize with the deregister log with it