moving token to the rootscope