added EnsurePackage RCurl and ssl fix