Added app monitor to keep track of errors. refactoring getAccess to be used again to refresh tokens