checking that hook name exists.
checking that hooks exists.
simplifying load_config.