make token an upsert