add hook in installer