token is getting lost