add support for nodeFlags