make USE_SSL actually work (thanks @prusnak for noticing)