preparing for claning duplication in greping checks
make checks work via objects, extract common grep code to one parent class