turn the safety into a mostly own plugin
code cleanups in plugin_safety
html reporting to own plugin