branch/cut api