pre-branch switch commit