add functions to parse headers