Simplify bracketing code and api
Merge remote-tracking branch 'origin/master'