header connection directory fix