trying to switch to curl as a client