minor changes to accept https