[PATCH v2 0/3] Support hooks placed in several files