get tokens automatically