adding extra minor checks to cascade classifiers