add hook file