fixed some silly errors with ssl integration
additional comments