fixed lat/long variables & changed SSL behavior