FLAGS LIBRARY