per-directory infrastructure