several updates:

* added protocol description of flag2
* added tests for volatile vars