fixing deleted stuff and elasticsearch in general