implement viff-report with ugly code.