adding ability to automatically authorize with a token