add rule handle and tree copy