add value checking to headers