simple dsm protocol analyzer
make things more reusable