fallback to hash if header is undefined