add dry run flag and add wrapper for problem and pending problems