fixes when SC_HEADERS_ONLY