added add_hook and estimate plugin