patch for https. should resolve #6