finished implementation of check policies and report generation
part of previous commit