preparations for https