Use new header access api

- This handles some deprecation warnings