actually calls curl and does stuff