made ssl handler as first handler