FIX: manage SSL connections