add hook library