chaned curl to use tmp dir
removed comments