made soft-delete check work with both newer and older flags