add hook validation and config