add cs.edit.has(...) which was missing