started implementation of ssl compatability