setup: check json before dropping current index