code cleanup
fix dynamic field processing
Support severity 0 in charts/stats