added checking the existence of EXTH header