started adding ssl support