trying to solve teh http|https bug