cleanup before branching off
initial version of pair