add set_flags to __all__