implementing the header as a directive