switch to using curl