added extra logging on registration-hook