removed curl and implemented native ssl support