making http headers optional