added changes to include https calls