add some debugging logs