added functions to prototype for handling access tokens