add support for arbitrary node-flags
Merge pull request #680 from tkellen/node-flags

add support for arbitrary node-flags