check locks and condition class