many fixes for https calls