add grammar to parse headers