fixed a bug that checkToken is not exported.