add check token is None and remove sql.txt etc.