use https for metadata requests when needed