create tokenHandler and some rest