singularities of pairs with non-principal ideals