fixing it for https