added getFlags support
v0.2.0