small improvements
fixed for ssl