Fixing header parsing

+ not found
+ not modified

+ logging