work on adding ssl support