auto-build headers + metadata