removed use of CURL