support for nexted flags