move header map to attributes