first hack at branch_cut functions