added ssl stuff