+ made the script https capable