better debug for flags