flag-based doors