remove superfluous flags parameter and fix BracketGuard for ST2