use on-headers to handle header checking