curl issues, adding capture