added logging for registering