modded the temp package script to RCurl