make sure it works when the header is not provided