-struct child *findchild(char *file, char *name);
-struct pattern *findmatch(char *file, int trydefault, int dir);
+struct child *findchild(char *file, char *name, struct config **cf);
+struct pattern *findmatch(char *file, int trydefault, int type);
+void modheaders(struct hthead *req, struct pattern *pat);