flags and other stuff