removed urllib, changed api to POST