registering and logging is functional