added header detection in guess-spec