store am id fields in headers