addded headers parsing