add /api/resetAll, comit some work on /api/matchAll