change named hook default to use function.name