modifying api calls to have multiple tokens depending on study