flags are now constants (it now works)